//
//  CZBasicController.swift
//  swift版新浪微博
//
//  Created by mac on 15/12/15.
//  Copyright © 2015年 mac. All rights reserved.
//

import UIKit

class CZBasicController: UITableViewController{
    var userLogin = false
    override func loadView() {
        userLogin ? super.loadView() :setupVistorView()

    }
    func setupVistorView()
    {
        view = CZVistorView()
        
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "注册", style: UIBarButtonItemStyle.Plain, target: self, action:"visitorViewRegisterClick")
        navigationItem.rightBarButtonItem = UIBarButtonItem(title:"登录", style: UIBarButtonItemStyle.Plain, target: self, action:"loginViewRegisterClick")
        
        if self is CZHomeController
        {
            
        }
        
    }
}
